package zoe.app.start.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;

/**
 * @author zoe.Zhang
 * @date 2022/12/29
 * @description
 */
@Configuration
public class TaskPool {
    @Bean
    ThreadPoolTaskScheduler zoeTaskScheduler() {
        return new ThreadPoolTaskScheduler();
    }

    @Bean
    ThreadPoolTaskExecutor zoeTaskExecutor() {
        return new ThreadPoolTaskExecutor();
    }
}
